package com.example.springbootredis.util;

import com.example.springbootredis.entity.User;

import java.util.ArrayList;
import java.util.List;

public class TestDataUtil {
    private static List<User> users = new ArrayList<>();
    static {
        Integer generateUserNum = 10005;
        for (Integer i = 10000; i < generateUserNum; i++) {
            User user = new User();
            user.setId(i);
            user.setAge(RandomValueUtil.getAge());
            user.setEmail(RandomValueUtil.getEmail());
            user.setName(RandomValueUtil.getChineseName());
            users.add(user);
        }
    }
    public static List<User> getUsers(){
        return users;
    }
}
